Created
September 2, 2021 01:00
-
-
Save andrewdoss-bit/185714cd172af8e6ffa97c9090a2fce9 to your computer and use it in GitHub Desktop.
Reading SDS011 Sensor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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