Error using PySense temp/hum sensor
I'm trying to read the temperature from the PySense board and am running to errors I can't figure out. Here is my code, which I based on the example for PyTrack and the API documentation:
from SI7006A20 import SI7006A20 from pysense import Pysense import time py = Pysense() sensor = SI7006A20() while True: print(sensor.humidity()) print(sensor.temperature()) time.sleep(1)
This is the error in Pycom Console
Traceback (most recent call last): File "main.py", line 2, in <module> ImportError: no module named 'SI7006A20' MicroPython v1.8.6-849-83e2f7f on 2018-03-19; WiPy with ESP32
What am I doing wrong? Thanks for the help!
This post is deleted!
jmarcelino last edited by
You probably need to add the sensor libraries to your lib/ folder on the device.
Please check if you have SI7006A20.py there (directly on /flash/lib)