I am trying to read Infrared using lirc library but I have had no success I followed this instruction http://www.instructables.com/id/How-To-Useemulate-remotes-with-Arduino-and-Raspber/ and made all the changes mentioned by it did almost 2 hours of research but when I run mode2 -d /dev/lirc0
I get this error :
Using driver default on device /dev/lirc0
Cannot initiate device /dev/lirc0