In-line monitoring of chemical-analysis processes using Wireless Sensor Networks