Changed the bedsensor_signal into a class