added reed switch setup