PaulS:
Nothing happens and nothing is supposed to happen. Do I need to cater for these situations if I don't want anything to change/happen?
No, you don't. But, are you sure that nothing should happen?
If the reading is below some value, you set DoorBellTriggered to 1. If the reading is above that value, it seems to me that the door bell was not triggered, so DoorBellTriggered should be set to 0, shouldn't it?
Thanks, Paul - I wonder if that's the clue to this whole servo episode...