If you use the UART then you must use a pull up resistor. If you are using a software serial routine, the idle state is as follows Low for Inverted and High for True. Use pull up or pull downs as needed. It is never good practice to allow an input to float.