Trouble accessing Raspberry pi 2 GPIO with python
I have a scenario in which i have to take readings from a DHT11 Temperatute & Humidity sensor and publish it to a topic (I am using python so suggestions keeping python in mind would be helpful). The problem is that i need to do sudo to assess the GPIO but again rosrun is not found when in sudo. What should i do ?