Skip to content
Read the temperature and relative humidity from a Pine64 PMSD001 sensor
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
main.go
wiring.jpg

README.md

Pine 64 - Temperature / Humidity Reader

This code reads the temperature and relative humidity from a Pine64 I2C PMSD001 sensor.

It's wired up via the Pi 2 bus as follows:

  • Pin 3 - SDA
  • Pin 4 - DC 5V
  • Pin 5 - SCL
  • Pin 6 - GND

Usage

$ go build -o reader main.go
$ ./reader
temp=32.32 humidity=73

Useful Resources

You can’t perform that action at this time.