Showing results for 
Search instead for 
Did you mean: 

STHS34PF80 proximity application


Hi everyone,

I'm developing a tamper detection circuit for a meter enclosure. I'm considering the STHS34PF80 infrared proximity sensor, but I'm struggling to find reference materials or application notes specifically related to tamper detection using this sensor.

My goal is to use the sensor as an interrupt generator, similar to a switch. When someone opens the enclosure lid, the sensor should detect the change in proximity and trigger an interrupt signal to the microcontroller, indicating tampering.

Can anyone recommend reference materials or alternative sensor options suitable for tamper detection in this application?


Federica Bossi
ST Employee

Hi @dhruvit ,

We don't have specific reference material for this application but, as far as I can tell from your post, you can use a presence library to detect if someone is in proximity.

You can tune the algorithm following the AN.


For the presence detection library, you can refer to X-CUBE-MEMS1


Here an example for presence detection:

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.