#include "Wire.h" #include "TPA81.h" // Create new TPA81 instance TPA81 tpa; void setup() { Serial.begin(9600); // You need to begin the Wire library to use TPA81 library Wire.begin(); } void loop() { // Print temperature light Serial.print(tpa.getAmbient()); Serial.print(" "); // Print all temperature point for (int i = 1; i <= 8; i++) { if (tpa.getPoint(i)>29) Serial.print("# "); else Serial.print(". "); } Serial.println(" "); delay(100); }