LDR sensor with Raspi

how to connect this with raspi using OpenHab for controlling LED OFF or ON

I have no idea, what this sensor does or is - but it seems like you have to do something like:

  1. get that sensor connected to your Pi as intended (using GPIO)
  2. get it up and running outside the openHAB context
  3. after that you can use the gpio-binding to control the sensor
  4. if that won’t work, you can write some reading scripts (in bash, python or whatever suits you) and Control those scripts via the exec-binding

I don’t think, there’s a specific binding for exactly that piece of sensor… So my bet is, you have to access it via the GPIO.

okay thanks, I will try