Arduino Uno Bluetooth Program
Arduino Uno Bluetooth Program
h>
void loop() {
// Check if data is available from Bluetooth module
if (btSerial.available()) {
command = btSerial.read(); // Read the incoming byte
}
else if (command == '0') {
// Turn relay OFF
digitalWrite(relayPin, LOW);
btSerial.println("Relay OFF");