#include <Arduino.h>
// ------------------------------------------------------------
// Copyright © 2026/2027 Dr. Mohammad Alja'afreh. All rights reserved.
// PSUT IoT Engineering Learning Platform
// ------------------------------------------------------------
// ---- Start serial communication.
void setup() {
  Serial.begin(9600);              // same baud as the Pi
}
 
void loop() {                      // repeats forever
  // ---- Create a fake sensor value for demonstration.
  int fakeValue = random(20, 31);  // 20 to 30
 
  // ---- Send a line of text to the Raspberry Pi.
  Serial.print("TEMP:");           // label
  Serial.println(fakeValue);       // value + newline
 
  // ---- Wait one second before the next message.
  delay(1000);                     // 1 message/s
}
