When electrons are at higher energy levels, they are unstable because of the high energy they possess in that higher energy levels
After some time, they come back to the original states( ground state ) in which they are stable, emitting the higher energy they had in the higher energy level
This energy emitted is equal to the difference in energies of the two states, that is, the higher energy state and the ground state
This energy is emitted in a frequency that lies in the light region of the Electromagnetic spectrum which can be seen by Electroscopy