I want to try and automate my new home for fun. I would also like to learn how to control 120v appliances with a PIC. I would like connect some sort of sensor (maybe pressure) to the PIC to help control the appliance automatically.

Besides the sensor, PBP, PIC chip, what special hardware would I need for this? Does anyone have some sample code about this sort of thing?

Thanks