I am using c8051f340 controller and i am controling fan from web but i am not receving any feedback that my motor is geting or or not?Can you suggest me any technique for that and same for led lamp?
A current sense resistor in series would indicate whether they are drawing current. In the case of the motor, if voltage is applied but the rotor is locked or blocked then the current would be higher than normal.
Alternatively you can use a photodetector to look at the at the LED, and another one to look at another LED through the fan blades -this one would have pulses on is as the fan spins and that pulse train can be detected.
There must be many more ways to tell, just a couple of thoughts.