void setup() { Serial.begin(9600); // Ensure this matches the baud rate in Main.java } void loop() { // Replace this with your actual RPM measurement logic double currentRPM = 1500.0; // Example RPM value Serial.println(currentRPM); delay(100); // Send data every 100ms, adjust as needed }