Text this: Adaptive Algorithm of Sensor Polling for Device Used for the Dam Condition's Diagnostics