This Arduino project reads analog values from a Light Dependent Resistor (LDR) connected to analog pin A0 and displays the light intensity as both raw sensor values and a percentage.
A minimal project that reads an LDR on analog pin A0, maps the 0\–1023 ADC value to 0\–100% and prints both the raw value and percentage to the serial monitor at 9600 baud.