dht20
A Rust library for interfacing with the DHT20 temperature and humidity sensor. This library provides an easy-to-use API for reading temperature and humidity data from the sensor.
Features
- Read temperature and humidity data from the DHT20 sensor.
- Simple and lightweight API.
- Designed for embedded systems and microcontrollers.
Installation
Add dht20 to your Cargo.toml:
[]
= { = "0.1.0"}
Then, include it in your project:
use dht20_rs;
Usage
Here's a basic example of how to use the library:
// use a delay implementation which is compatible with the HAL `DelayNs` trait (HAL 1.0)
use ;
// simple `println!` macro to print messages to the serial console
use println;
use Dht20;
!
Documentation
For detailed documentation, visit docs.rs/dht20.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.