{"product_id":"161-photo-cell-cds-photoresistor","title":"Photo cell (CdS photoresistor)","description":"\u003cp\u003eCdS cells are little light sensors. As the squiggly face is exposed to more light, the resistance goes down. When it's light, the resistance is about ~1KΩ, when dark it goes up to ~10KΩ.\u003c\/p\u003e\n\u003cp\u003e To use, connect one side of the photocell (either one, it's symmetric) to power (for example 5V) and the other side to your microcontroller's analog input pin. Then connect a 10K pull-down resistor from that analog pin to ground. The voltage on the pin will be 2.5V or higher when it's light out and near ground when it's dark.\u003c\/p\u003e\n\u003cp\u003e \u003cstrong\u003eCdS photocells are not RoHS compliant\u003c\/strong\u003e , so \u003ca href=\"https:\/\/www.adafruit.com\/products\/2831\"\u003eif you need something equivalent but RoHS compliant, check out the phototransistor.\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e For a full tutorial with wiring diagrams, code examples, and project ideas, please \u003ca href=\"http:\/\/learn.adafruit.com\/photocells\"\u003eread the photocell tutorial page\u003c\/a\u003e ! \u003c\/p\u003e\n\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/ZRzpSmJ5vfk\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/ZRzpSmJ5vfk\/hqdefault.jpg\"\u003e\u003c\/p\u003e","brand":"Adafruit","offers":[{"title":"4-6 Days","offer_id":47700341621081,"sku":"ADA-161\/B","price":1.39,"currency_code":"EUR","in_stock":true},{"title":"1 day","offer_id":47886509277529,"sku":"ADA-161\/A","price":1.39,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47886672265561,"sku":"ADA-161","price":1.39,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/161-01.jpg?v=1705517998","url":"https:\/\/xernuqvalzi.pro\/en\/products\/161-photo-cell-cds-photoresistor","provider":"Robot Italy","version":"1.0","type":"link"}