ADDED: new code to handel distance heat value to IOIO