Fixed sensors not updating connection state
I am bad at merging but I think this is good