I recovered this program from my archived Arduino screenshot with Codex assistance.
It uses A0, D1, a threshold of 20 and 115200 baud, with a 300 ms sample interval.
The old Arduinocode download is a serial ON/OFF program and is preserved separately.

Build target: rp2040:rp2040:seeed_xiao_rp2040, Arduino-Pico core 4.5.3.
Open Recovered_LDR.ino and keep its .cpp tab beside it. Only Arduino core functions
are used. The cpp layout avoids automatic-prototype differences between IDE tools.

Threshold 20 is transcribed, not calibrated. I still need the actual light/dark
readings, ADC settings and fitted divider value. The archived schematic's LED
polarity and 10-ohm resistor entry also need comparison with the assembled board.
A compiled program does not establish that the archived circuit is correct.
