Closing a sensor connection

After the MIDlet is no longer listening for data on a sensor connection, close the connection to save resources. To close a connection, call the close method on the SensorConnection object:

sensorConnection.close()