Measurement using light - the working principle