An optical flux sensor, based on the fluorescence properties of materials and nanoparticles, has been developed to control the deposition rate in thin film deposition systems. Using a simple diode laser and a photomultiplier tube with a light filter, we report the detection of gallium atoms and CdSe-ZnS quantum dots. This setup has a high sensitivity and reproducibility.