The Angry Humidor

Just for fun I added an Arduino to a humidor to monitor the temperature and humidity.

This humidor is built on the newest Arduino board, the MKR1000. This board is basically an Arduino Zero with a built in WiFi shield. I added a Adafruit-htu21d-f temperature and humidity sensor and an LED. The LED is coded to flash codes for errors and readings. The Arduino connects to the WPA2 wireless network with the WIFI101 library. I coded the Arduino to take a temperature and humidity reading every hour then it sends the data over HTTPS POST to a Web API service. The Web API calls a stored procedure in AZURE to write the data to the database. This website pulls the data using MVC. A data access object is created and passed to the model, the model populates the view.

Twitter Account

If, for some strange reason, you take the time to Wifi enable a humidor you should create a twitter acount for it. It is the geeky thing to do. The Web API will randomly select 1 out of 100 temperature and humidity readings to send to the twitter API. This method will create a randomly generated disgruntaled tweet that includes the temperature and humidity.

Humidor readings

Reading Date/Time Temperature Humidity Humidor
1/24/2021 10:14:47 PM 73.19 19.98 CS50
1/24/2021 10:14:36 PM 73.64 19.71 CS50
1/24/2021 10:14:27 PM 74.08 19.16 CS50
1/24/2021 10:14:16 PM 74.49 18.83 CS50
1/24/2021 10:14:07 PM 74.99 18.59 CS50
1/24/2021 10:13:56 PM 75.55 18.29 CS50
1/24/2021 10:13:46 PM 76.20 17.59 CS50
1/24/2021 10:13:36 PM 76.92 16.98 CS50
1/24/2021 10:13:27 PM 77.71 16.45 CS50
1/24/2021 10:13:16 PM 78.48 15.96 CS50
1/24/2021 10:13:07 PM 79.49 15.31 CS50
1/24/2021 11:09:15 AM 62.59 44.37 BeachHouse
1/24/2021 10:09:15 AM 62.36 44.42 BeachHouse
1/24/2021 9:09:15 AM 62.42 44.41 BeachHouse
1/24/2021 8:09:15 AM 62.36 44.44 BeachHouse
1/24/2021 7:09:15 AM 62.36 44.51 BeachHouse
1/24/2021 6:09:16 AM 62.50 44.54 BeachHouse
1/24/2021 5:09:15 AM 62.48 44.53 BeachHouse
1/24/2021 4:09:15 AM 62.48 44.61 BeachHouse
1/24/2021 3:09:15 AM 62.57 44.57 BeachHouse
1/24/2021 2:09:15 AM 62.52 44.60 BeachHouse
1/24/2021 1:09:15 AM 62.67 44.61 BeachHouse
1/23/2021 11:09:13 PM 63.62 43.53 BeachHouse
1/23/2021 10:09:13 PM 63.50 43.59 BeachHouse
1/23/2021 9:09:13 PM 63.66 43.63 BeachHouse
1/23/2021 8:09:13 PM 63.71 43.70 BeachHouse
1/23/2021 7:09:13 PM 63.69 43.85 BeachHouse
1/23/2021 6:09:13 PM 62.96 45.02 BeachHouse
1/23/2021 5:09:13 PM 63.08 45.09 BeachHouse
1/23/2021 4:09:13 PM 63.04 45.08 BeachHouse