Digitalread Nano 33 IOT

Hi,

I'm trying to do a simple digitalread of a push-button on my arduino nano 33 IOT. But the results are not reliabale. My serial monitor keeps showing 0 and 1 (also when the button is not pressed). Do I have to download a special liabrary?

On my arduino uno the same program works fine.

Can someoen help me please?

Thanks a lot

Best regards

Andreas

Please try following this tutorial to learn how to use the internal pullup resistors on your Nano 33 IoT to avoid this problem:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.