Real-Time Data Reduction Scheme for Efficient WSN Systems