A Neural Network-Based Low-Cost Solar Irradiance Sensor