Ensar Karabudak
Published © GPL3+

Air Quality Monitoring Station using Pico LTE and Thingspeak

Low-cost LTE air quality station based on Raspberry Pi Pico

IntermediateFull instructions provided2 hours2,149
Air Quality Monitoring Station using Pico LTE and Thingspeak

Things used in this project

Hardware components

Sixfab Pico LTE
Sixfab Pico LTE
×1
SparkFun Indoor Air Quality Sensor - ENS160 (Qwiic)
×1

Software apps and online services

MicroPython
MicroPython
ThingSpeak API
ThingSpeak API

Story

Read more

Code

read_quality.py

MicroPython
from pico_lte.core import PicoLTE
from pico_lte.common import debug
from ENS160 import ENS160
import time

air = ENS160()

TVOC = air.getTVOC()
AQI = air.getAQI()
ECO2 = air.getECO2()


picoLTE = PicoLTE()

while True:
    print(AQI)
    print(TVOC)
    print(ECO2)
    payload = {"field1": TVOC, "field2": AQI, "field3": ECO2}
    debug.info("Publishing data to ThingSpeak...")
    result = picoLTE.thingspeak.publish_message(payload)
    debug.info("Result:", result)
    
    time.sleep(60)

Credits

Ensar Karabudak

Ensar Karabudak

8 projects • 9 followers

Comments