Separate the sensors code on the client side.