I am working withe the turbidity sensor SEN0189 and I am using mcp3008 A to D converter but I am not able to get the values for it, as I am not able to download the adafruit mcp3008 libraries in my pi. As I'm not getting any output I have tried some other code so that it's showing the output but it shows 0 all the time and also please help me out about the wiring of the tubidity sensor. The code for which i am getting 0 is
import mcp3008 import time while true: adc=mcp3008.MCP3008() print(adc.read([mcp3008.CH0])) adc.close() time.sleep(1)
If you know some other code that works for it please let me know.