I have connected a Infrared receiver to Rasberry Pi like this:
And i have tried the example from URL: http://pi4j.com/example/listener.html to get information from the GPIO 18 but it outputs nothing into terminal.
Is there any way i can get info from infrared receiver in Java with Pi4j.
I know that the Python script exists but i want to learn if there is possibility to read sensors data from Java.
UPDATE 1:
GPIO port 18 is port 1 in Pi4j now i get the output with states LOW HIGH how can i now decode the signal so i can use it for transmitter.