| Crates.io | env_monitor |
| lib.rs | env_monitor |
| version | 0.1.1 |
| created_at | 2025-04-03 04:33:14.013904+00 |
| updated_at | 2025-04-03 04:46:05.125563+00 |
| description | This crate provides a comprehensive interface for interacting with DHT11 temperature & humidity sensors, flame detection sensors, and buzzers on the Raspberry Pi. |
| homepage | |
| repository | https://github.com/zccccc01/env_monitor |
| max_upload_size | |
| id | 1617654 |
| size | 35,694 |
使用 Raspberry Pi 等设备上的传感器来监控环境。它集成了 DHT11 温湿度传感器、火焰传感器和蜂鸣器。项目支持异步操作,利用 Tokio 实现并发数据读取和处理。
git clone https://github.com/zccccc01/env_monitor.git
cd env_monitor
在项目目录下,运行以下命令安装依赖:
cargo build
确保树莓派 3b+已连接以下硬件:
运行以下命令启动环境监控系统:
cargo run --example env_monitor_example