You connected RST to pin 5 but the code says it must be at pin 9. Either change the wiring or the code.