Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2black0/micropython-sht11
sht11 module for micropython
https://github.com/2black0/micropython-sht11
micropython sensor sht11 sht1x
Last synced: 3 months ago
JSON representation
sht11 module for micropython
- Host: GitHub
- URL: https://github.com/2black0/micropython-sht11
- Owner: 2black0
- License: mit
- Created: 2020-06-27T05:26:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T05:46:18.000Z (over 4 years ago)
- Last Synced: 2024-04-22T13:30:46.466Z (7 months ago)
- Topics: micropython, sensor, sht11, sht1x
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-sht11 - Driver for Sensirion SHT11 temperature and humidity sensor. (Libraries / Sensors)
README
# micropython-sht11
based on : https://github.com/ayoy/upython-aq-monitor
### Board Supported
Test on ESP32 (Lolin32 Lite)### How to Use
```python
from sht11 import SHT11#pin sck and data used, change with yours
sht = SHT11(sck=26, data=33)#read temperature and humidity
tempOut = sht.temperature()
humOut = sht.humidity()#print temperature and humidity
print('Temperature: ', tempOut, '*C')
print('Humidity: ', humOut, '%')
```