{"product_id":"2831-photo-transistor-light-sensor","title":"Photo Transistor Light Sensor","description":"\u003cp\u003eThis\u003cstrong\u003e Photo Transistor Light Sensor\u003c\/strong\u003e is a simple sensor that detects ambient light. It's kind of the opposite of an LED - when light hits the little chip inside, it induces current to flow from the long pin to the short pin. This sensor has a built-in optical filter (probably IR filter) so it'll do a fair job of simulating light levels as the human eye does. \u003c\/p\u003e\u003cp\u003eTo use, connect the pin connected to the 'thicker' part of the sensor (longer pin) to 3-15VDC or so, and the thinner-part (shorter) pin through a ~1K-10K series resistor to ground. When it's dark, there's almost no current flowing through the sensor or resistor and the analog voltage is near ground. When there's light near the sensor, the current through the resistor will increase, raising the voltage. You can adjust the series resistor to get the voltage range you need and measure the analog voltage with a microcontroller.\u003c\/p\u003e\u003cp\u003eIf you're not getting any readings, try flipping the sensor around.\u003c\/p\u003e\u003cp\u003e\u003ca href=\"https:\/\/www.adafruit.com\/products\/161\"\u003eThese are, essentially, replacements for CdS photocells, but are RoHS compliant.\u003c\/a\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/sCXSoVaG2U4\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/sCXSoVaG2U4\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/ZRzpSmJ5vfk?start=566\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/ZRzpSmJ5vfk\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/5HKvRrVWgYs\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/5HKvRrVWgYs\/hqdefault.jpg\"\u003e\u003c\/p\u003e\u003cp\u003e\u003ciframe src=\"\/\/www.youtube.com\/embed\/9d7kSD90Nyw%0A?start=92\" allowfullscreen=\"\" tc-textcontent=\"true\" data-tc-id=\"w-0.6521400180343196\" width=\"560\" height=\"315\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e","brand":"Adafruit","offers":[{"title":"4-6 Giorni","offer_id":47700430455129,"sku":"ADA-2831\/B","price":1.39,"currency_code":"EUR","in_stock":true},{"title":"1 Giorno","offer_id":47886553448793,"sku":"ADA-2831\/A","price":1.39,"currency_code":"EUR","in_stock":false},{"title":"2-4 Settimane","offer_id":47886718370137,"sku":"ADA-2831","price":1.39,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/2831-01.jpg?v=1705519587","url":"https:\/\/xernuqvalzi.pro\/products\/2831-photo-transistor-light-sensor","provider":"Robot Italy","version":"1.0","type":"link"}