Question: where to find wps pin on hp deskjet 2540?
Answer: To begin with, go to the Settings icon on your HP Deskjet 2540 Printer Touch panel.
Then, Go to Network Settings. ... 
Here you can see all the information about your HP Deskjet 2540 Printer Network settings.
Also, you can see your printer's WPS PIN here.