Example of light sensor calibration: LightSensor l_LS = new LightSensor(SensorPort.S3, true); l_LS.setFloodlight(true); System.out.println("Place sensor above pure white..."); Button.waitForPress(); l_LS.calibrateHigh(); System.out.println("Place sensor above pure black..."); Button.waitForPress(); l_LS.calibrateLow(); System.out.println("Place sensor above shade for BREEZE..."); Button.waitForPress(); int l_ShadeBreeze = l_LS.getLightValue(); System.out.println("Place sensor above shade for STENCH..."); Button.waitForPress(); int l_ShadeStench = l_LS.getLightValue(); System.out.println("Place sensor above shade for GLITTER..."); Button.waitForPress(); int l_ShadeGlitter = l_LS.getLightValue(); System.out.println("Place sensor above shade for BREEZE + STENCH..."); Button.waitForPress(); int l_ShadeBreezeStench = l_LS.getLightValue(); System.out.println("Place sensor above shade for BREEZE + GLITTER..."); Button.waitForPress(); int l_ShadeBreezeGlitter = l_LS.getLightValue(); System.out.println("Place sensor above shade for STENCH + GLITTER..."); Button.waitForPress(); int l_ShadeStenchGlitter = l_LS.getLightValue(); System.out.println("Place sensor above shade for BREEZE + STENCH + GLITTER..."); Button.waitForPress(); int l_ShadeBreezeStenchGlitter = l_LS.getLightValue();