im unsure as to why but if i use print i dont get a serial response from the device but with write it works fine.