11. Input Devices

Individual assignment

1. Humidity Sensor

I integrated a humidity sensor compatible with Arduino into my custom PCB. The connection was established using jumper wires, and the sensor's output was routed to the analog pin A2 of the RP2040 microcontroller. This setup allows me to capture analog signals that correspond to the humidity levels in the environment.

I wrote a small code snippet to read humidity every second.

After uploading the code to the RP2040, I conducted a test to ensure it was working correctly.