Development of an Artificial Neural Network Algorithm Embedded in an On-Site Sensor for Water Level Forecasting