Refactored code: PacketPusher class, Sensor encapsulation