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
8/6/2020 5:07:40 PM 81.34 63.76 BeachHouse
8/6/2020 4:07:39 PM 83.48 63.27 BeachHouse
8/6/2020 3:07:39 PM 84.99 63.09 BeachHouse
8/6/2020 2:07:39 PM 84.83 62.99 BeachHouse
8/6/2020 1:07:39 PM 84.97 63.58 BeachHouse
8/6/2020 12:07:39 PM 84.74 62.38 BeachHouse
8/6/2020 11:07:40 AM 84.85 62.04 BeachHouse
8/6/2020 10:07:39 AM 85.10 62.16 BeachHouse
8/6/2020 9:07:39 AM 85.34 62.31 BeachHouse
8/6/2020 8:07:40 AM 85.62 62.55 BeachHouse
8/6/2020 7:07:39 AM 85.82 62.00 BeachHouse
8/6/2020 6:07:40 AM 86.09 62.12 BeachHouse
8/6/2020 5:07:39 AM 86.34 62.23 BeachHouse
8/6/2020 4:07:39 AM 86.65 62.37 BeachHouse
8/6/2020 3:07:39 AM 86.98 62.53 BeachHouse
8/6/2020 2:07:39 AM 87.30 62.73 BeachHouse
8/6/2020 1:07:39 AM 87.61 62.98 BeachHouse
8/5/2020 11:07:37 PM 88.15 63.03 BeachHouse
8/5/2020 10:07:37 PM 88.68 64.35 BeachHouse
8/5/2020 9:07:38 PM 88.62 63.58 BeachHouse
8/5/2020 8:07:38 PM 88.50 63.31 BeachHouse
8/5/2020 7:07:39 PM 88.13 63.07 BeachHouse
8/5/2020 6:07:37 PM 87.61 63.25 BeachHouse
8/5/2020 5:07:38 PM 87.34 64.68 BeachHouse
8/5/2020 4:07:38 PM 86.42 63.07 BeachHouse
8/5/2020 3:07:38 PM 85.82 63.13 BeachHouse
8/5/2020 2:07:37 PM 85.32 63.29 BeachHouse
8/5/2020 1:07:38 PM 85.22 64.32 BeachHouse
8/5/2020 12:07:38 PM 84.39 62.32 BeachHouse
8/5/2020 11:07:38 AM 83.87 62.29 BeachHouse