what is the difference between plc and arduino?
The Raspberry Pi is effectively a miniaturized Linux-based single-board PC, whereas an Arduino is more like a PLC. ... A sensor measures flow and sends data to the Arduino, which adjusts a control valve actuator to maintain the setpoint.