Oh dear! Cluttered void loop, a pointless timeout timer in void setup, and lots of stuff missing from your sketch.
A little bedtime reading for you…
Pete.