Input Component Setup Examples
Supplies for All

Photoresistor
Additional Supplies

Diagram

Code
This code will print to the Serial Monitor the amount of light detected by the sensor.
Ultrasonic Distance Sensor
This sensor works like a bat or a clicker from The Last of Us to detect objects and their distance from the sensor using a soundwave pulse outside of human hearing ranges.
Additional Supplies

Diagram

Code
This code will print to the Serial Monitor the distance of an object in front of the sensor.
Last updated
Was this helpful?