This project aims to develop an original electrochemical reactor (ECR) system to enable a decentralised wastewater pre-treatment scheme for inorganic and organic compound degradation. The proposed electrochemical reactor will regulate energy input using the information provided by the sensors. The proposed ECR can provide many benefits in smart city development.