Why can't I connect LDR sensor?

1- First of all I have StandardFirmata loaded for my Arduino board connected to COM4 port:

2- After opening Node Red and Deploying, only the LED works and the LDR does not connect

image

3- Both are connected to the same COM4 port, which is the correct one


image

Does anyone know how to solve this problem? If I have to run another type of Firmata, I don't know

Thank you very much for your attention

An LDR is an analog device, have you connected it to one of the Analog in pins, via a voltage divider, as well as designated as such in the node?

image

image

image

2 Likes

It worked, the problem was that I was putting A5 instead of just 5

Thank you very much for the reply and for the help, I appreciate it

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