For Terrans: A simple sensor tower is great against this build. It gives you heaps of time to react to his army movement and allows you to more safely have units at your natural (rather than protecting your main)
Alot of the times the P will not even try to get in your main when he knows the sensor tower is there. If he does though you are ready.
Also it's better than place depots around your main edges and have them get sniped by stalkers, which can hurt alot when his big push at the front comes.
I have no idea where the hell did you get the gas to get senso r tower against this build.
Even the smallest donations help keep sc2sea running! All donations go towards helping our site run including our monthly server hosting fees and sc2sea sponsored community tournaments we host. Find out more here.