A method of using an electronic sensor in an internal unit for a laundry treatment machine, the internal unit being suspended such that it can vibrate in the laundry treatment machine, the internal unit having a laundry drum and an electric motor for driving the laundry drum, which comprises the steps of:
- providing a printed circuit board being a motor control-system printed circuit board;
- coupling the electronic sensor, being a vibratory sensor, rigidly to the internal unit, the vibratory sensor being a printed circuit board component on the printed circuit board, and said vibratory sensor including a sensing element enclosed in a sensor housing, the sensor housing being configured to isolate the sensing element from mechanical noise originating outside of the sensor housing, whereby the sensing element detects a physical displacement of the vibratory sensor on the motor resulting from a movement of the internal unit;
- transmitting measured values of vibratory movements to a controller;
- evaluating, in the controller, the measured values from the sensor in real time;
- and
- controlling the electric motor in dependence on an evaluation of the measured values.