Those ultrasonic things don't work. Get some sticky traps if they are grain moths. The traps are simply cardboard with a little bait thing you put in the middle that have lady moth pheromones that attract other moths. Then they are stuck on the sticky interior. Very effective and not expensive.