Lilygo T-display 1.28" Display with ESP-32 (not the ESP-32 plus RP2040, didn't try it on that one)
Tradition photodiode, tie one leg ground, the other to pin 27.
Add 100K ohm 0603 resistor between 26 and 27, this will be used as the pull-up.
Programmed with Arduino IDE.
Use ESP32 Dev Module as the board.
Get the TFT_eSPI library.
Use my PHDiode.ino file
Use M3x4x5 knurled threaded inserts
Let me know if you have trouble or need additional file.