And the question is .... ?
Well, I can guess - although I prefer people ask.
if(millis()>= sensorWait);
is not doing anything usefull at all. You have no conditional code between the ")" and the ";". Syntax here.
May I respectfully suggest that you post any further questions in a new topic, as this one is for discussing the instructional value of the long explanation.