#15 decide variable as setpoint will be a sync and implemented first try of logic