New customers can spin up VMs, build with AI, and query data at no cost.
Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime
General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.
Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
...Put inside a class and modified it somewhat -- it was originally written for version 1.2 of the thermometer and thus had a runtime error on my raspberry pi.
Usage:
mythermometer = TEMPer(0) # where the 0 is for calibration (+/- degreesC)
tempC = mythermometer.gettemp()