Trying to change servo sweep speed based on number of people in a room

Grumpy_Mike:
Get rid of all the serial print crap in the loop function, the delay that causes is much longer than the delays you are causing to the servo update with the state machine implementation.

Thank you! as you can tell, I am quite new to all this.
After moving the serial code to a separate file, my servo now correctly changes speed depending on the number of people in the room!

Thank you so much!