mikroBUS UPM Sensor
Tempurature Sensor
#!/usr/bin/env python
from __future__ import print_function
import time, sys, atexit
from upm import pyupm_mcp9808 as MCP9808
def main():
# Instantiate the Infrared-Thermopile Sensor on I2C on bus 1
mySensor = MCP9808.MCP9808(2,0x18)
while(1):
print("Temperature : "+str(mySensor.getTemp()))
time.sleep(.5)
# Print out temperature value and config-reg in hex every 0.5 seconds
if __name__ == '__main__':
main()
Accelerometer Sensor

Humidity Sensor

Last updated