I have a Pi connected to a BME280 breakout board that I got from Adafruit (https://www.adafruit.com/product/2652). It's also connected to a Dallas 18B20 temperature sensor. The sensors are outdoors in a small actively-ventilated enclosure I made. The Pi is indoors, and the wires run through the wall.
Why 2 temperature sensors? Turns out the BME280 runs about 2°F hot, and the 18B20 is right on, so I end up using the 18B20 as my primary temp sensor.
Every minute a cronjob runs and the Pi takes readings from the sensors and stores them locally.
Then, I have another Pi that, every minute, reads those values and stores them in a long-term database (I have about 5 years of weather data at this point). The long-term database is running a custom Rails app I wrote to report on the data and show graphs, compare weather over years, etc.
In theory this could all live in a single Pi, but for various legacy reasons I ended up with a dedicated Pi for data processing, and a dedicated Pi for data gathering.
Why 2 temperature sensors? Turns out the BME280 runs about 2°F hot, and the 18B20 is right on, so I end up using the 18B20 as my primary temp sensor.
Every minute a cronjob runs and the Pi takes readings from the sensors and stores them locally.
Then, I have another Pi that, every minute, reads those values and stores them in a long-term database (I have about 5 years of weather data at this point). The long-term database is running a custom Rails app I wrote to report on the data and show graphs, compare weather over years, etc.
In theory this could all live in a single Pi, but for various legacy reasons I ended up with a dedicated Pi for data processing, and a dedicated Pi for data gathering.