You are reading a single comment by @DrAzzy and its replies. Click here to read the full conversation.
  • If the input is floating, you always need a pullup or pulldown. Without that, reads will be unpredictable. See pinMode() in reference. But I'm not sure why it would be floating if you're measuring a voltage, unless you didn't connect the grounds....

About

Avatar for DrAzzy @DrAzzy started