RasPi_terra is a tool for monitoring and controlling environmental conditions in terrariums using a Raspberry Pi. This repository contains the code for:
- Reading temperature and humidity data from multiple DHT22 sensors.
- Automatically controlling a fan based on predefined thresholds.
- Visualizing the data on an interactive dashboard created with R and Shiny.
- Sensor Monitoring: Continuously reads temperature and humidity data from up to four DHT22 sensors.
- Fan Control: Automatically manages fan operation based on monthly temperature thresholds.
- Interactive Dashboard: Displays real-time and historical data trends in an R Shiny application with multiple tabs for detailed analysis.
- Raspberry Pi with GPIO pins.
- Up to four DHT22 sensors. (easily expandable with additional code)
- A fan connected to a GPIO pin.
- Required libraries installed on the Raspberry Pi (
Adafruit_DHT
,gpiozero
, etc.).
- Install Python 3 and required Python libraries:
pip3 install Adafruit_DHT gpiozero
- R with following packages: shiny, shinyWidgets, stringr, lubridate, dplyr, ggplot2.
- Command line software such as "Ubuntu for windows" to run the .sh wrapper script.