<div dir="ltr">Hello everyone,<div><br></div><div>I am trying to develop a code por a new Type that simulates a tank conected to a freshwater source, with three electric resistances inside of it in order to produce steam.</div><div><br></div><div>It's operation follows this path: </div><div>- By pushing a button, the tank is switched on, letting water inside the tank. </div><div>- When the water reaches the minimum level of the tank (there's a sensor that sends a signal to the machinery opperating the system), the three resistances switch on.</div><div>- There is another sensor that sends another signal when the water level reaches the maximum capacity of the tank. When this sensor detects liquid, the inlet flow is shut down.</div><div>- When the water level goes down lower than the minimum capacity, the inlet flow is switched on again.</div><div>- There is also a thermometre that measures the temperature inside the tank. If that temperature is lower than the maximum temperature, the resistances are switched on. Once we reach maximum temperature, they are switched off, until the minimum temperature is reached and the resistances are switched on again.</div><div><br></div><div>My main question is: <b>since the water level is measured by sensors, how can I write down the commands that allow the resistances and inlet flow switching on and off? </b>There will be calculations inside, but the main problem I face is this lack of knowledge for incorporating sensor's coding inside this new Type and if this signals should be an input with a proper dimmension.</div><div><br></div><div>Thanks in advance for your time, hopefully somebody can help me with this issue.</div><div><br></div><div>Kind Regards,</div><div><br></div><div>Pablo Calleja</div></div>