Skip to content

Instantly share code, notes, and snippets.

zefanja

Block or report user

Report or block zefanja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kadamski
kadamski / sds011
Last active Jan 12, 2020
SDS011 dust sensor reading
View sds011
#!/usr/bin/python
# coding=utf-8
# "DATASHEET": http://cl.ly/ekot
from __future__ import print_function
import serial, struct, sys, time
DEBUG = 1
CMD_MODE = 2
CMD_QUERY_DATA = 4
CMD_DEVICE_ID = 5
You can’t perform that action at this time.