What is problem with my code

yes both of them are present there, i did that to know if new data is printed