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

I've only had a quick look, but in your case isn't it as simple as reducing "servoInterval" as the current value of "people" increases ?

Steve