Here are the files you will need for the professional development on Arduino sensors:
Light sensor code for Night Light Practice
- ArduBlock: lightSensor.abp
- C++: lightSensor.ino
Temperature sensor code
- ArduBlock: temperatureSensor.abp
- C++: temperatureSensor.ino
Push button code
- ArduBlock: buttonSensor.abp
- C++: buttonSensor.ino
Knob code
- ArduBlock: knobSensor.abp
- C++: knobSensor.ino
Distance sensor code
- ArduBlock: distanceSensor.abp
- C++: distanceSensor.ino
Speaker code
- ArduBlock: lightSensorSound.abp
- C++: lightSensorSound.ino
Servo code
- ArduBlock: lightSensorServo.abp
- C++: lightSensorServo.ino
Motor code
- ArduBlock: lightSensorMotor.abp
- C++: lightSensorMotor.ino
Circuit Diagrams
Simple
Note: You may want to include a resistor to protect the LED. Some LEDs require this, or they will blow out. Connect a resistor between the green wire and the LED.
Night Light
Temperature
Push Button
Knob
Distance Sensor