IOT-based sensors for monitoring the condition of motors, fans and pumps