PIBS is put under a leg of the bed. Its springs lift the bed some millimeters. This distance is detected using an inductive proximity sensor. If weight is put in the bed, the springs deflect and sensor detects it.
The strength of the springs can be selected or adjusted to get two different behaviors:
With strong or strong adjusted springs and an analog proximity sensor, a signal proportional to the weight (and position) of the person in the bed can be detected.
With weak or weak adjusted springs and a digital proximity sensor (a micro switch, or an analog proximity sensor), a digital signal telling if a person is in bed or not can be produced. An analog proximity sensor has the advantage that no fine adjustment of the sensor needs to be done. Proximity sensors have the advantage of being immune for dust and dirt.