Data Provenance and Reliability in Sensor Networks