int switchread = pulseIn(enable,INPUT);
The pulseIn() function does not return an int.
if (switchread > 14435) {
Magic numbers are not a good idea.
if (switchstate = 1 && sensorValueB < limitB && iB==0) {
Assignments in if statements are rarely a good idea...
else if (switchstate = 0 && sensorValueB < limitB && iB==0) {
That idea hasn't gotten any better. 8)
if (switchstate = 1 && sensorValueA < limitA && iA==0) {
else if (switchstate = 0 && sensorValueA < limitA && iA==0) {
Still hasn't.
That's enough for now. I'm getting dizzy reading your code.