Sensor for Monitoring the Moisture in Porous Materials