The main objective of the proposed system is to simplify the process of taking care of a patient who cannot move and permanently lies on a bed. Lying on a bed for long time brings in a number of health problems: The first and main issue is the rotten skin and/or ulcers. The second is the patient's inability to reach the bathroom. This proposed medical bed is meant to solve both issues through a unique design that rotates the patient and provides an innovative designed lavatory for cleansing. By using an android tablet connected to the Arduino microcontroller via Bluetooth, the caretaker can rotate the bed to either direction to move the pressure away from the back of the patient, and to control the sliding lavatory to start cleansing. The bed operates in two modes: A manual mode that engages the caretaker in the rotation process and an automatic mode that rotates the bed every two hours. The maximum angle of rotation is determined based on measuring the weight of the patient via load cells distributed throughout the bed. In addition, the smart bed includes sensors for some vital signs, such as heart rate, body temperature, air flow and Electrocardiography (ECG) signal. © 2018 IEEE.