/*
==== Find and Fix the Bugs Set B ====
Author: Roberto Palozzo
=====================================
*/
int ledPin = 4; // FIX 1: was "2ledPin" — an identifier can't start with a digit (pin set to 4 for the actual wiring).
float temperature = 23.5; // FIX 2: was "23.5" in quotes — a float can't be assigned a string.
String deviceName = "Node1"; // FIX 3: was "device name" with a space — identifiers can't contain spaces.
void setup()
{
Serial.begin(9600);
Serial.println("Ready");
pinMode(ledPin, OUTPUT); // pin set as output, now consistent with the corrected ledPin name
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(500);
digitalWrite(ledPin, LOW);
delay(500);
}