imu+bluetooth (hc-05) module

There may be more than one problem here

In the immortal words of some guru round here, Bluetooth is just serial without wires. In principle, it really is that simple. So, are your Nanos able to comminicate with wires?

IF SO, the code is the same. All you have to do is connect bluetooth in place of the wires.

OR there may be a bluetooth<>bluetooth connection problem, so check
http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/
Note that this is a Bluetooth configuration problem more than an Arduino coding problem.

IF NOT there may be a serial input problem so check
http://forum.arduino.cc/index.php?topic=396450.0

OR you haven't the faintest idea of what you are doing and are trying to run before you can walk. So, for some basic bluetooth background, try
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino