Using ENS160 with Raspberry Pi Pico 2040
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi guys,
I'm trying to use the DFRobot ENS160 Airquality Sensor with a Raspberry Pi Pico 2040 (without WiFi) and have some troubles with installing modules. I'm using the following code: DFRobot_ENS160/DFRobot_ENS160.py at main · DFRobot/DFRobot_ENS160 · GitHub
As I'm trying to execute it from my main.py file there always are modules missing:
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
File "DFRobot_ENS160.py", line 18, in <module>
File "/lib/smbus2/__init__.py", line 23, in <module>
File "/lib/smbus2/smbus2.py", line 25, in <module>
ImportError: no module named 'fcntl'
How do I have to proceed?
Thank you for helping in advance.
Hi
Could you please follow the demo code from Wiki? Which can install the driver easily.
https://wiki.dfrobot.com/SKU_SEN0514_Gravity_ENS160_Air_Quality_Sensor
![](https://dfimg.dfrobot.com/nobody/makelog/e36131cc4fb8397848627c97e84d2363.png)
Hope it can help you
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)