Skip to content

Instantly share code, notes, and snippets.

Avatar

passantedimezzo

View GitHub Profile
@netmaniac
netmaniac / nova_sensor.py
Last active Feb 4, 2020
Nova SDS011 sensor. Code is free to use in own projects, but I don't provide any support nor don't make me liable if it is not working :)
View nova_sensor.py
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import serial, time, struct, array
from datetime import datetime
ser = serial.Serial()
ser.port = "/dev/ttyUSB0" # Set this to your serial port
ser.baudrate = 9600
You can’t perform that action at this time.