Vertical input optical ring resonator with differential operation for optical sensor