This project utilizes sensor data to monitor the condition of food in a container and alert the user when the food is spoiled. It does this by sending SMS to the user’s mobile phone whenever the food gets spoiled, and now it's now to safe to keep your food in the container.
This project is the major project of the course Prototyping interactive systems (DES130). The goal of the project is to demonstrate the ability to prototype an interactive system that solves a real-world problem.
- Arduino microcontroller
- DHT11 Temperature and Humidity Sensor
- Alcohol sensor (MQ-3)
- Light-Dependent Resistor (LDR)
- Arduino IDE
- Mit App Inventor
-
Connect the DHT11 Temperature and Humidity sensor to the Arduino. The DHT11 has three pins: VCC, Data, and GND. Connect the VCC pin to 3.3V, the Data pin to digital pin 8, and the GND pin to GND.
-
Connect the Alcohol sensor (MQ-3) to the Arduino. The MQ-3 has three pins: VCC, Data, and GND. Connect the VCC pin to 5V, the Data pin to A0, and the GND pin to GND.
-
Connect the Light-Dependent Resistor (LDR) to the Arduino. The LDR has two pins: one connects to A1 and the other connects to GND.
-
Download and install the Arduino IDE.
-
Download the code provided above and open it in the Arduino IDE.
-
Connect your Arduino to your computer via USB cable.
-
In the Arduino IDE, select the appropriate board and port.
-
Upload the code to the Arduino.
-
Download and install Mit App Inventor.
-
Create a new project in Mit App Inventor and import the app code. A screenshot of the blocks design is included in the repository for reference.
-
Configure the app to receive data from the Arduino via Bluetooth or other communication protocol.
-
Set threshold values for each sensor data, if any of the sensor data goes beyond that threshold value, it will consider the food as spoiled.
-
Test the app and ensure that it is properly receiving data from the Arduino and sending SMS when food is spoiled.
-
Connect the arduino to power source and place it inside the container.
-
Place the container with food and arduino inside.
-
Turn on the power to the arduino.
-
Wait for the arduino to gather sensor data and send it to the app.
-
Check the app for the status of the food and take appropriate action if necessary.
This code is provided as-is. It is your responsibility to ensure that it is safe and compliant with all applicable laws and regulations.
The repository also includes the .apk file for the app, so that it can be directly installed on an Android device.