Auto opitcal device