hi, i think the clue is in the question, you say you have changed the diaphragm, most likely an error putting it back together. Have a look at this pic, is this the unit you are refering to?
http://freespace.virgin.net/stella.pint/
the diaohragm has to have a perfect seal, are you sure it was installed ok? it has to stick to the bit of the valve on the left in the pic.
As Andy said you should be able to press the microswich manually to test switch is ok. It should just pull off.
Lee, May 2006