Light to control DC Motor

it's a phototransistor. It looks like an LED except it has a flat top. I used it when I first was trying Arduino and I made a theremin that used it to change the pitch of a piezo.