Add luminosity sensor function