3
3
2. Proximity Sensor
Function: Detects presence or absence of an object without physical
contact.
Examples:
o IR Sensor, Ultrasonic Sensor (HC-SR04), LVDT.
Applications: Parking sensors, mobile phones (screen off during call),
robotics.
4. Light Sensor
Function: Measures the intensity of light.
Examples:
o LDR (Light Dependent Resistor), TSL2561.
Applications: Automatic street lights, smartphones (auto brightness).
5. Ultrasonic Sensor
Function: Uses ultrasonic waves to measure distance.
Example:
o HC-SR04.
Applications: Robotics, water level detection, obstacle avoidance.
6. Pressure Sensor
Function: Measures pressure of gases or liquids.
Examples:
o BMP180, MPX5010.
Applications: Weather forecasting, tire pressure monitoring.
7. Gas Sensor
Function: Detects the presence of gases.
Examples:
o MQ2, MQ7, MQ135 (for LPG, CO, air quality).
Applications: Gas leak detection, air quality monitoring.
8. Humidity Sensor
Function: Measures moisture or humidity in the air.
Examples:
o DHT11, DHT22.
Applications: Weather stations, HVAC systems, greenhouses.
9. Motion Sensor
Function: Detects movement of objects or people.
Examples:
o PIR Sensor (Passive Infrared).
Applications: Security systems, smart lighting.
10. Accelerometer
Function: Measures acceleration forces.
Examples:
o ADXL345.
Applications: Smartphones (screen rotation), fitness tracking.
11. Gyroscope
Function: Measures angular velocity.
Examples:
o MPU6050 (accelerometer + gyroscope).
Applications: Drones, VR headsets, gaming controllers.
🔁 Working:
1. Sensor detects temperature & humidity and sends it to the
microcontroller (ESP8266).
2. The microcontroller processes the data. If temperature > 30°C:
o It turns ON a fan (via relay).
3. The microcontroller sends the data to the cloud (e.g., Thingspeak) using
its built-in WiFi.
4. A user can monitor the real-time temperature from anywhere using a
mobile app or website.