A scientific tool that can do the same thing is called a spectroscope (early spectroscopes used prisms). You can make your own spectroscope by following the instructions shown below! Assemble the ...
SD card and USB interfaces, and an 18650 power supply. Plus a piezo speaker, because a spectroscope needs clicks, too. The ability to determine the energy of incident photons is the real kicker ...