Miniature photoelectric sensor detects presence of bagged candy during secondary packaging operations