const int tempPin = A0;
const int lightPin = A1;
void setup() {
Serial.begin(9600);
}
void loop() {
int tempValue = analogRead(tempPin);
int lightValue = analogRead(lightPin);
float temperature = (tempValue * 5.0 * 100.0) / 1024.0;
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Light Level: ");
Serial.println(lightValue);
delay(1000);
}