How to train the AI sensor to recognize objects