5 mm LEDs use epoxy and anything that removes it chemically will be toxic. Fumes from burning epoxy are also known to be carcinogenic.
Although we know LEDs work as detectors, the efficacy is poor and spectralbandwidth is not flat.
If it is optical sensitivity you wish to measure, ie. CIE weighted eye response, then I strong recommend the Panasonic photo sensors with CIE correction. they are buffered internally and work well as current sources into resistive load to ground from a 5 V supply. You can change sensitivity with resistor load values and measure from < 1 LUX to greater than 150kLux on direct sunlight. They have a wide beamwidth , so a stepped black aperture is needed if you want to make narrow angular measurements from a distance. I have successfully used these to make an LED tester for a Goniophotometric meter for testing at 1 meter distance with stray light being blocked in the fixture design.
If you need more details, let me know what you are testing.
Tony Stewart