Skip to content

Instantly share code, notes, and snippets.

View passantedimezzo's full-sized avatar

passantedimezzo

View GitHub Profile
@netmaniac
netmaniac / nova_sensor.py
Last active August 10, 2022 17:32
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 :)
#!/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