i’m using an esp 8266 to make a project that will show me on Apple Homekit the water level of my rainwater collector. I’v made some arduino project before but i have never use the ESP. Now i’m coding the level detector, it will work with 10 cables (9 levels). Ich cable works as a button: when water touches the end of the cable, it will connect to the 10th cable which is the 3.3v one, and will say that the water level is at the cable’s level. but i have a problem: when i use the digitalRead(PIN)
, some pins shows me alway 1
in the serial monitor, but not 0
when the level cable isn’t connected to the 3.3v, for exemple, when i use the pin D2, digitalRead(D2) == HIGH
is always true, but digitalRead(D8) == HIGH
is true only when it’s connect to 3.3v.. can someone help me please?
Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.
In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.
Use the </> icon from the ‘reply menu’ to attach the copied sketch.
1 Like
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.