When I connect the pressure sensor to an analog pin of
WEMOS D1 MINI board I'm getting values between 300 when the sensor is not pressed, and 700 when it is pressed. But I wanted to connect 10 pressure sensors so I connected it to digital pins because I need only 2 states
I thought that, if the value is less than 512
digitalRead method returns
1 if the value is more than 512. But now I getting spam on serial port because values are changing all the time. When pressure sensor is not active I'm getting only
000000000 and that's ok, but when I press the sensor I'm getting
Am I right that when I connect the sensor to digital I can get values
1, or should I use an analog multiplexer to connect everything through analog pins?