It is oriented to get a better comprehension of the Lock-in amplifier, including its features and limitations. It has been defined to learn how to model a lock-in amplifier, a photo-detector, different noise sources, etc.
Here I model a laser sensor emitting a constant signal to a photo-detector. This signal drops below a certain threshold if something blocks the light, causing an alarm event. The goal of this exercise is to study how the flicker noise can heavily distort these type of measurements and how the utilization of locking amplifiers can avoid this problem but with certain limitations (dynamic reserve).