added ping functionality to buttondrive and sensors classes