Lift the hood and under the operator station (dash) and find were the pto lever opens/closes the switch, and see if its doing just that...that switch could be bad or the lever isn't depressing it....only other cause would be the brake switch and that is just behind the engine on the left side under the battery...