Simulink model of Doorbell using Solenoid Block
Study no 1:- Simulink model of Doorbell using solenoid block

In this model to feed the input , pulse generator block is created with inputs given as for amplitude as 4, to achieve 2 seconds of phase delay & 2 seconds to ring given time period as 4 seconds with pulse width 50%

This is the input signal fed into electrical circuit & the input has to be converted from simulink input signal to the physical signal.
Output is as follows

Here the amplitude/vibration shown indicates that the bell is ringing at the interval of 2 seconds.
Study no 2:- Thermistor to sense the temp

A thermistor is a resistance thermometer whose resistance is dependent on temperature.
Here the input is fed through the block signal builder & the input data is given as per condition provided

Output is as follows

Here as per given conditions the fan will work only in time period of 10 to 30 seconds as depicted in the graph