ちょっとまえに秋月で買った温湿度センサーHDC1000から取ってきた温湿度を自動でTwitterに投げるようにしてみました。 買ったは良いものの、ラズパイがLCD液晶に現在の時刻と温度と湿度を出すだけの機械と化していたので「インターネットにつながっている」という利点を活かしてみました。 とりあえずは簡易的なIoTになってるかなぁって感じですw(ちょっと違うかな?) 設置編 qiita.com そこそこ資料も出回ってるセンサーなので解説は....要らなそうですね。 Pythonからセンサーを弄ってみる # -*- coding: utf-8 -*- import wiringpi import os import struct from time import sleep wiringpi.wiringPiSetup() #setup wiringpi i2c = wiringpi.I2C(