A detector suitable for mass spectroscopy uses a thin mem -brane that converts the kinetic energy of impinging molecules into corresponding photons, the latter detected with a suitable photosensor. The arrival of molecules at the membrane is detected by detection ofthe corresponding photons.