Study and design of a local weather station with smart sensors