deleted some superfluous counter and implemented two sensorData calls