How shall I confirm data reception?

I am sending temperature and humidity data to a computer using arduino and ethernet. I need to design a system such that Arduino transmits the next data only after the previous one has been successfully received and the receiver is prepared to receive the next data. How should I write the codes at arduino??
My code is here:

temphumidip.ino (2.7 KB)

Well, use a handshape protocol of some kind. e.g. send a schecksum over the received pachage back to the sender. if data is ok, sender deletes data and sends next. if not, sender resends data.

I think you may have what you want with out knowing it. Use TCP. TCP is a reliable stream delivery service which guarantees that all bytes received will be identical and in the same order as those sent. Since packet transfer by many networks is not reliable, TCP achieves this using a technique known as positive acknowledgement with re-transmission. All you need to do is implement it and process any errors. For the warm and Fuzzy have the target check the message and if it likes it acknowledge it. It will get what was sent but what was it sent? This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil