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
9/25/2020 9:08:18 PM 75.28 67.21 BeachHouse
9/25/2020 8:08:16 PM 75.26 67.01 BeachHouse
9/25/2020 7:08:16 PM 75.39 69.00 BeachHouse
9/25/2020 6:08:16 PM 75.14 67.29 BeachHouse
9/25/2020 5:08:16 PM 74.93 67.09 BeachHouse
9/25/2020 4:08:16 PM 74.79 67.64 BeachHouse
9/25/2020 3:08:16 PM 74.43 67.25 BeachHouse
9/25/2020 2:08:17 PM 74.20 67.17 BeachHouse
9/25/2020 1:08:16 PM 74.16 67.34 BeachHouse
9/25/2020 12:08:16 PM 73.83 66.08 BeachHouse
9/25/2020 11:08:16 AM 73.87 67.00 BeachHouse
9/25/2020 10:08:16 AM 73.50 66.12 BeachHouse
9/25/2020 9:08:17 AM 73.46 66.37 BeachHouse
9/25/2020 8:08:17 AM 73.50 66.03 BeachHouse
9/25/2020 7:08:16 AM 73.66 66.20 BeachHouse
9/25/2020 6:08:16 AM 73.83 66.05 BeachHouse
9/25/2020 5:08:16 AM 74.00 66.22 BeachHouse
9/25/2020 4:08:16 AM 74.20 66.33 BeachHouse
9/25/2020 3:08:16 AM 74.35 66.51 BeachHouse
9/25/2020 2:08:16 AM 74.54 66.64 BeachHouse
9/25/2020 1:08:26 AM 74.70 66.86 BeachHouse
9/24/2020 11:08:15 PM 75.03 67.03 BeachHouse
9/24/2020 10:08:15 PM 75.10 67.12 BeachHouse
9/24/2020 9:08:15 PM 75.45 71.56 BeachHouse
9/24/2020 8:08:15 PM 75.32 67.61 BeachHouse
9/24/2020 7:08:15 PM 75.22 67.35 BeachHouse
9/24/2020 6:08:15 PM 75.10 67.25 BeachHouse
9/24/2020 5:08:15 PM 74.95 67.27 BeachHouse
9/24/2020 4:08:15 PM 74.74 67.18 BeachHouse
9/24/2020 3:08:15 PM 74.54 67.15 BeachHouse