Fridge Food Detector




Introduction: Fridge Food Detector

About: My name is Zach Sousa and I'm a Canadian highschool student that has a passion for making.

Are you ever out shopping and forget if you are out of a your favourite food? If so, this project is for you.

This project creates a simple webserver that shows if you are low on a specific food or drink, for example, milk. It uses the linkit ONE microcontroller for the WiFi connection, and a small piece of Velostat, a force sensitive material. The board is able to detect the difference between a full milk jug and an empty one, using the pressure sensor.

Step 1: Parts and Tools

Here are the Parts and tools that you will need to make this project:




Linkit ONE board and WiFi antenna


10k ohm resistor

Male headers


Computer with the latest version of the Arduino IDE

Soldering Iron and solder


Step 2: Wiring

Use the attached wiring diagram to make the required connections to the linkit ONE. The red LED is mainly used to make sure that the sensor is working properly and for calibration if you want to use a specific type of food or drink.

For the velostat, strip two wires so it has about an inch of exposed wire. Then, attach them to each side of the velostat using some tape.

Step 3: Code

Download the (First) attached code. Now, change the line that says "#define WIFI_AP "Your Network" " and change "Your Network" to the name of your wifi network. Do the same with the line of code after that, but change "Your Password" to the password to your wifi network. Now, upload it to the Linkit ONE. Open the serial monitor and copy the first IP address shown as you will need it later.

Now that you have the IP address, download the second code and do the same to the two lines of code, in fact, you can just copy/paste. Now, upload the code to the linkit ONE

Step 4: Test...

To test the device, place a (full) container of some sort, like a milk jug, onto the velostat sensor. The red LED will turn on if the food or drink is heavy enough. Now, you can type in the IP address into your web browser to see if it is triggered when the container is on the sensor.

Tech Contest

Participated in the
Tech Contest

Be the First to Share


    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Super-Size Speed Challenge

      Super-Size Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020

    3 Discussions


    4 years ago

    Great idea!

    Does the sensor measure ON or OFF (minimum weight needed), Or does it measure it from 0% - 100%?


    Reply 4 years ago

    I think the picture in Step #4 answered my question as "ON or OFF" am I correct?

    Zach Sousa
    Zach Sousa

    Reply 4 years ago

    Yes, it is either on or off. However, I could add in an analog value to the webserver.