Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Miceuz/sht25-micropython

Micropython implementation of API of SHT25 Humidity and Temperature Sensor
https://github.com/Miceuz/sht25-micropython

Last synced: 2 months ago
JSON representation

Micropython implementation of API of SHT25 Humidity and Temperature Sensor

Lists

README

        

# sht25-micropython
[Micropython](https://micropython.org) implementation of API of [SHT25](https://www.sensirion.com/sht25) Humidity and Temperature Sensor

## Usage

```python
import time
from machine import I2C
from machine import Pin
from sht25 import SHT25

sensor = SHT25(I2C(scl=Pin(5), sda=Pin(4)))

while True:
print(str(sensor.getTemperature()) + ", " + str(sensor.getHumidity()))
time.sleep(1)
```