What distance? What frequency? What degree of security do you need? Have you considered safety laws (i.e., protection from crushing children and pets)?
In other words, why, when you can buy one for a few dollars? And maybe more to the point, why duplicate posts? What's the urgency?
If you really want to build those circuits yourself, I suggest trying Google. Several designs popped up on a search, but you will definitely need more electronic equipment to get such circuits up and running.
An then, there is the mechanical part. Do you want to build that yourself too?