The matlab code which works for one sensor once the bluetooth module is connected to the laptop bluetooth the data will be continously recieving.
But you need to recieve the data for 5 sec and then stop the data recieving data from sensor by automatically disconnecting and after 5 sec it has to connect automatically and read the data similarly it should repeat.
Attachment:- code.rar