Skip to content

Instantly share code, notes, and snippets.

@navin-bhaskar
Created April 8, 2015 16:57
Show Gist options
  • Select an option

  • Save navin-bhaskar/3653acce435f6a79c728 to your computer and use it in GitHub Desktop.

Select an option

Save navin-bhaskar/3653acce435f6a79c728 to your computer and use it in GitHub Desktop.
Temperature sensor using upm
import pyupm_grove # Get the UPM library
# Create the temperature sensor object
temp = pyupm_grove.GroveTemp(1)
# Use "value" method on it to get the temperature
print "Temperature now is " + str(temp.value())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment