#include #include #define TEMP_PIN A0 float temp; SoftwareSerial mySerial(D6, D7); // RX, TX void setup() { Serial.begin(115200); // tty.wchusbserial14130 mySerial.begin(4800); // tty.wchusbserial14110 } void loop() { temp = analogRead(TEMP_PIN); temp = temp * (3*100)/1024; // (Voltage*100)/1024 Serial.print("TEMPERATURE = "); Serial.print(temp); Serial.println(" C"); mySerial.println(temp); delay(1000); }