Numerical Simulation of Mechatronic Sensors and Actuators