I take two successive samples, TargetS and IdS. A level baseline TargetBase is created by low pass filtering (dynamic PI). The ID is the ratio TargetS/IdS. An ID baseline IDBase is created as the ratio of the low pass filtered versions of TargetS and IdS.
A target temporariliy raises TargetS above the baseline TargetBase. The signal level is TargetS - TargetBase and it triggers a target signal, however, it is only accepted if its ID is different from IDBase.
Two coins placed under a magnetically responsive tile:

https://youtube.com/shorts/rbP85u1VJ...EDSCm6-d6b0pEK
A target temporariliy raises TargetS above the baseline TargetBase. The signal level is TargetS - TargetBase and it triggers a target signal, however, it is only accepted if its ID is different from IDBase.
Two coins placed under a magnetically responsive tile:
https://youtube.com/shorts/rbP85u1VJ...EDSCm6-d6b0pEK
Comment