Welcome to the Environmental Monitoring Tutorial! This blueprint demonstrates how to monitor environmental conditions by measuring temperature and humidity using a Particle device with a Grove Temperature & Humidity Sensor. Every 10 seconds, the sensor reads temperature and humidity values, publishing this data to the cloud. Once received, the cloud converts the temperature from Celsius to Fahrenheit and stores it in a time-series database (Ledger). Additionally, an alert is triggered if the temperature exceeds a specified threshold set within Ledger.
This project provides a practical example of IoT-based environmental monitoring, ideal for use cases in smart homes, greenhouses, and industrial monitoring.
For this project, you’ll need:
- Particle MCU Development Board (e.g., Argon, Boron)
Purchase here - Grove Temperature & Humidity Sensor (DHT11)
Seeed Studio Sensor Details - Particle Grove Shield
Particle Grove Shield Details
The Particle Grove Shield is essential for connecting the Grove sensor to the Particle board without the need for soldering.
- Introduction
- Hardware Requirements
- Tutorial - Getting Started
- Firmware Details
- Cloud Functionality
- Contributions
- Change List
- Supported Hardware
Connect the Grove Temperature & Humidity Sensor to the Grove Shield, then attach the Grove Shield to your Particle device.
Ensure your Particle device is registered and connected to your Particle account. You can do this via setup.particle.io.
Clone or download this project repository and open it in Visual Studio Code or another code editor with Particle support.
Flash the firmware to your device. You can use Visual Studio Code with the Cloud Flash command, or the Particle CLI with the command:
particle flash <device_name> environmental-monitoring
With the firmware running, the Particle device will publish temperature (in Celsius) and humidity data to the cloud every 10 seconds.
To view real-time data, open the Particle Console or use the serial monitor in Visual Studio Code by running:
particle serial monitor --follow
Temperature readings exceeding the threshold (e.g., 30°C) will trigger alerts in the cloud, visible in the Console and potentially actionable through notifications.
The firmware reads temperature and humidity values from the Grove sensor every 10 seconds and publishes them to the cloud. It uses standard Particle APIs and includes basic logging for ease of troubleshooting.
- Temperature: Measured in Celsius from the sensor.
- Humidity: Measured as relative humidity (%) from the sensor.
- Interval: Data is collected and published every 10 seconds.
The Ledger service is used to store the published data. Each temperature and humidity reading is saved with a timestamp, allowing for easy analysis and historical review.
- Database: Stores temperature and humidity readings over time.
- Data Format: Includes both Celsius and converted Fahrenheit temperatures, as well as humidity.
When the cloud receives temperature data, it automatically converts the value from Celsius to Fahrenheit. The system also checks the current temperature against a predefined threshold (e.g., 30°C).
- Temperature Alert: Triggers if the temperature exceeds the threshold.
- Threshold Setting: Configurable in the Ledger database, allowing real-time adjustment of alert sensitivity.
We welcome contributions to this blueprint! If you'd like to suggest changes, please open a pull request in the Environmental Monitoring GitHub Repository.
- Fork the repository.
- Make your changes in a new branch.
- Open a pull request with a detailed description of your changes.
- v1.0.0: Initial release, with core functionality for environmental monitoring and alert system.
This blueprint supports all Particle MCU Development Boards and works specifically with the Grove Temperature & Humidity Sensor and Particle Grove Shield for seamless sensor integration.
This project is licensed under the MIT License. For details, see the LICENSE file in the repository.
By following this tutorial, you can easily set up an environmental monitoring system that leverages Particle's cloud capabilities and provides actionable insights through data collection and alerting. Happy monitoring!