You are reading a single comment by @user52526 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 user52526 @user52526 started