Night light
A photoresistor on A0: the darker it is, the brighter the LED.

The code
// A photoresistor module on A0: it reads higher in the dark.
// The LED on pin 9 is brighter the darker it gets. Select the sensor to set the light.
void setup() {
pinMode(9, OUTPUT);
Serial.begin(9600);
}
void loop() {
int raw = analogRead(A0);
analogWrite(9, map(raw, 0, 1023, 0, 255));
Serial.print("darkness:");
Serial.println(raw);
delay(100);
}
More like this

Op-amp night light (LM358)
An LM358 compares the light sensor with half the supply: when it gets dark the LED comes on, with no code in the way. The Uno reads both and prints them.
ArduinoArduino Uno

Distance (HC-SR04)
An ultrasonic echo timed with pulseIn(). Set the distance in the inspector.
ArduinoArduino Uno

Thermometer (NTC)
An NTC thermistor on A0, turned into °C. Watch it in the Plotter.
ArduinoArduino Uno