Problem state pin in Mqtt different from state hardware

Hi alls,

I have tried to do my first code here. (branch test)
Mailbox detector parcel , letter.
https://github.com/f1ssf/Box-221224-A/tree/version-PIR-sensor-added

My code run very well, I have 3 sensors, pins are actives hight level.
and I don’t know why, when not activity, the PIR state is at level 1 instead of 0 in Mqtt broker, yet detection is done for switchs parcel, letter.
I don’t understand, I use the same syntaxe.
Capture d’écran 2024-12-29 à 19.34.08
Regards