Arduino And Sensors with Uses
Share this content:
Sensors Used with Arduino
Sensors are components that allow the Arduino to interact with the environment by detecting physical parameters like temperature, motion, and light. Here are some commonly used sensors with Arduino:
Name | Description |
DHT11/DHT22 | Digital sensors that measure temperature and humidity. |
BMP180 | A barometric pressure sensor, useful for weather stations. |
FSR (Force Sensitive Resistor) | Measures physical pressure applied to a surface. |
LM35 | An analog sensor for precise temperature measurements. |
PIR Sensor | Detects infrared radiation from moving objects (commonly used in motion detection projects). |
Ultrasonic Sensor (HC-SR04) | Measures distance by sending out ultrasonic waves and detecting their return after bouncing off an object. |
Photoresistor (LDR) | A sensor that changes its resistance based on the light intensity. |
TCS3200 Color Sensor | Detects the color of light. |
MQ-2 | A gas sensor that detects flammable gases like methane, propane, and butane. |
MQ-135 | Used for air quality monitoring, particularly for detecting CO2 levels. |
IR (Infrared) Sensors | Detect the proximity of objects using infrared light. |
Capacitive Touch Sensors | Detect the presence of a finger or object near a surface without physical contact. |
How Arduino and Sensors Work Together
When you connect sensors to an Arduino, the sensor readings are taken through the input pins of the board. These inputs are processed by the microcontroller, which can then be programmed to trigger specific actions based on the sensor data. For example:
- Temperature Monitoring: If a DHT11 sensor detects high temperatures, the Arduino can turn on a fan.
- Obstacle Avoidance Robot: Using an ultrasonic sensor to detect obstacles and then turning the robot in another direction.
Simple Arduino Project with a Sensor
Project: Temperature and Humidity Monitoring
Components:
- Arduino
- UnoDHT11
- sensorLCD
- display (optional)
- Jumper
- wires Breadboard
Steps:
- Connect the DHT11 sensor to the Arduino (signal pin to a digital pin, VCC to 5V, GND to ground).
- Use the DHT library in the Arduino IDE to read temperature and humidity data from the sensor.
- Display the readings on an LCD or print them to the serial monitor.
- Write a program to monitor changes and trigger alerts when the temperature or humidity exceeds a certain threshold.
Post Comment