How to light a bulb using Arduino uno
Run one wire (red) to the 5V socket on the Arduino. Run the other wire (black) to one of the GND sockets on the Arduino. The colors aren't essential but they will help you remember what the wires are connected to! Plug in the Arduino, you should see the LED light up.
How to connect Arduino with ultrasonic sensor
The connections for the ultrasonic sensor with the Arduino are as follows:
1. Connect VCC on the ultrasonic sensor to the 5V pin on the Arduino.
2. Connect the Trig pin on the ultrasonic sensor to pin 2 on the Arduino.
3. Connect the Echo pin on the ultrasonic sensor to pin 3 on the Arduino.
UltraSonic Sensor
Ultrasonic transducers and ultrasonic sensors are devices that generate or sense ultrasound energy. They can be divided into three broad categories: transmitters, receivers and transceivers.
Infrared Sensor
An infrared sensor is an electronic device, that emits in order to sense some aspects of the surroundings. An IR sensor can measure the heat of an object as well as detects the motion. These types of sensors measure only infrared radiation, rather than emitting it that is called a passive IR sensor.
How to connect Arduino with Infrared Sensor
The connections for the Infrared sensor with the Arduino are as follows:
1. Connect the negative wire on the IR sensor to GND on the Arduino.
2. Connect the middle of the IR sensor which is the VCC to 5V on the Arduino.
3. Connect the signal pin on the IR sensor to pin 8 on the Arduino.