Smart Home Simulation

This project simulates a smart home setting using a network of sensors.

It contains three sketches:

  1. Sketch humidity/temperature to LCD
  2. Sketch motion sensor to LED
  3. Sketch gas sensor to buzzer and LEDs

In order to use this code you will need:

Instructions

  • the Arduino IDE
  • an Arduino board or any other microcontroller (doesn't need to be OEM)
  • a gas sensor
  • an lcd screen with embedded i2c protocol
  • a motion sensor
  • 3 led lights of any size
  • a small electrical buzzer
  • 3 220 Ohm resistors
  • jumper wires for the connections
  • a breadboard to connect the circuit

You will also need these libraries:

Dependencies

https://www.arduino.cc/en/Guide/Libraries

To run the sketches just open them with the Arduino IDE and run them on the microcontroller.

  • Sketch hum/temp_to_LCD initializes a humidity temperature sensor and shows the results on an LCD screen.
  • Sketch motion_to_LED initializes a generic motion sensor which when triggered turns on the light.
  • Sketch gas_to_buzzer initializes a generic gas sensor which when triggered a buzzer alarm goes off, turning on the red led meaning a danger state.

This code is open-source. Copy, change or use it by any means.