Interfacing esp8266 witk rpi (perhaps a diagram)

how manage i the interface?
perhaps a diagram!
how can a read e.g. the temp in another room?
Dick