Power consumption reduction for wireless sensor networks using a fuzzy approach