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
11/24/2020 8:08:43 PM 64.16 58.41 BeachHouse
11/24/2020 7:08:43 PM 64.25 58.50 BeachHouse
11/24/2020 6:08:43 PM 64.35 58.55 BeachHouse
11/24/2020 5:08:43 PM 64.41 58.59 BeachHouse
11/24/2020 4:08:43 PM 64.64 58.59 BeachHouse
11/24/2020 3:08:43 PM 64.43 58.62 BeachHouse
11/24/2020 2:08:43 PM 64.25 58.67 BeachHouse
11/24/2020 1:08:46 PM 64.16 58.67 BeachHouse
11/24/2020 12:08:43 PM 64.18 58.91 BeachHouse
11/24/2020 11:08:43 AM 63.96 58.91 BeachHouse
11/24/2020 10:08:43 AM 63.64 58.91 BeachHouse
11/24/2020 9:08:43 AM 63.50 58.94 BeachHouse
11/24/2020 8:08:42 AM 63.52 59.02 BeachHouse
11/24/2020 7:08:43 AM 63.52 59.07 BeachHouse
11/24/2020 6:08:43 AM 63.60 59.07 BeachHouse
11/24/2020 5:08:43 AM 63.66 59.14 BeachHouse
11/24/2020 4:08:42 AM 63.75 59.15 BeachHouse
11/24/2020 3:08:42 AM 63.69 59.24 BeachHouse
11/24/2020 2:08:43 AM 63.77 59.30 BeachHouse
11/24/2020 1:08:43 AM 63.81 59.28 BeachHouse
11/23/2020 11:08:43 PM 63.95 59.40 BeachHouse
11/23/2020 10:08:43 PM 63.91 59.49 BeachHouse
11/23/2020 9:08:43 PM 64.06 59.50 BeachHouse
11/23/2020 8:08:43 PM 64.04 59.64 BeachHouse
11/23/2020 7:08:43 PM 63.96 59.65 BeachHouse
11/23/2020 6:08:43 PM 63.81 59.60 BeachHouse
11/23/2020 5:08:45 PM 64.10 59.70 BeachHouse
11/23/2020 4:08:44 PM 64.16 59.68 BeachHouse
11/23/2020 3:08:43 PM 63.66 59.58 BeachHouse
11/23/2020 2:08:43 PM 63.52 59.65 BeachHouse