The sensor is a rain-detection sensor. I am not sure why writeBuffer.available() would return 0 unless nothing gets written to the buffer as long as there is no rain and no manual polling ...