Using BMP280 sensor to control servos. Need some guidance with coding

Hi,
Does your button operate between 5V and the digital input pin?
If so you will need a 10K resistor between the digital input pin and gnd.
This so the input will be pulled low when the button is open.

A circuit diagram might be a good idea at this stage.

Thanks.. Tom... :grinning: :+1: :coffee: :australia: