Skip to content

Instantly share code, notes, and snippets.

@andrewdoss-bit
Created September 2, 2021 01:00
Show Gist options
  • Save andrewdoss-bit/185714cd172af8e6ffa97c9090a2fce9 to your computer and use it in GitHub Desktop.
Save andrewdoss-bit/185714cd172af8e6ffa97c9090a2fce9 to your computer and use it in GitHub Desktop.
Reading SDS011 Sensor
import serial
ser = serial.Serial('/dev/ttyUSB0')
message = ser.read(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment