Diffuser sensor error

Hello
I designed a factroy simulation on factory io, the problem is that the diffuser senor is reading the item product base twice. And its damaging my code and programing, the counters i m using is not counting correctly, for each item they are counting two instead of one.
Any help on this problem.
I m using TIA portal v15, s7-1200 sim.
The conection between is tia protal and factory IO is working fine.
Thanks.

Have you tried triggering the sensor manually yourself? I didn’t have any problems with the sensor so far…