Wall following Robot without MicroController
if the PWM frequency is fixed you can convert the PWM signal to DC using a low-pass filter and then compare that with a constant voltage

The result can be used to steer the robot. or possibly fed straight to a PWM sensing servo