getting error: Adafruit_Sensor.h: No such file or directory

If you're having trouble with your LattePanda, here's the place to get help.
Forum rules
    Post technical issues here.

    - Discussion tone should be kept polite and focused on facts
    - Vulgar language or flaming constitutes an instant ban
    - Please note we cannot support PM requests for help
    - Members are asked to post in English only so that posts can be well received and properly monitored
    - You can find the RMA guide [here]
    - Please check if your question has already been answered before opening a new thread. If it has not, please verify the following:


    - Have you tried a hard reset?
    - Are you using a 5V@2A+ power supply and a high quality USB cable?
    - Have you tried powering the board through the CN2 headers?
    - Have you tried a cooling solution such as a fan or heatsink?
    - Have you tried reinstalling drivers?
    - Have you tried reloading the operating system?
    - Have you tried flashing the BIOS?
    - Are you able to flash the BIOS at the hardware level?

    If you have not found a solution, post a new issue. To speed up the process please let us know:
    - Have you tried the solutions listed above?
    - What board are you using? Standard (2GB RAM/32GB eMMC) or Enhanced (4GB RAM/64GB eMMC)?
    - Have you tried any other solutions?
    - How long have you had your board for?
    - When did you first boot your board?
    - Did it work ok before the issue occurred or has the issue always been there?
    - Use images and videos to help us understand the issue where possible

    If you are seeking RMA:
    - Please open a new topic rather than hijacking someone else's thread
    - Mark RMA posts with [DEFECTIVE] + <helpful description of issue>. We can then approve/disapprove each request
    - Completed RMA cases will be marked with [CLOSED]
    You can find the RMA guide [here]

    Resolved Issues
    - If you manage to fix an issue, please share your solution for the good of the community. It could help someone else in future.
    - If an issue is resolved the thread should be marked as [RESOLVED]. We can then sticky the thread to help people in future.

    What does troubleshooting support?
    - Hardware queries
    - Hardware issues that weren’t caused by you, e.g DOA board
    - Windows 10 specific issues
    Post Reply
    User avatar
    sansupercool
    Posts: 21
    Joined: Sun May 13, 2018 7:09 am

    Sat Oct 27, 2018 4:20 pm

    I am tryying to do my first arduino project on my lattepanda EP,
    I followed the instructions:

    but when I try to compile I get this error :

    Code: Select all

    Arduino: 1.8.7 Hourly Build 2018/10/24 04:33 (Windows 10), Board: "Arduino Leonardo"
    
    In file included from C:\Users\LattePanda\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
    
    C:\Users\LattePanda\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
    
    compilation terminated.
    
    exit status 1
    Error compiling for board Arduino Leonardo.
    Invalid library found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries: no headers files (.h) found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries
    Invalid library found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries: no headers files (.h) found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    On Arduino IDE i click on manage library and searched for Arduio Sensor but there is nothig like that, I have installed arduino DHT22 sensor library already.

    Please help :!:

    User avatar
    sansupercool
    Posts: 21
    Joined: Sun May 13, 2018 7:09 am

    Sat Oct 27, 2018 4:43 pm

    I fix this prolem already now I am getting a new error

    Code: Select all

    Arduino: 1.8.7 Hourly Build 2018/10/24 04:33 (Windows 10), Board: "Arduino Leonardo"
    
    In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:40:0:
    
    C:\Program Files (x86)\arduino-nightly\libraries\Servo\src/Servo.h:84:0: warning: "MAX_SERVOS" redefined
    
     #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)
    
     ^
    
    In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:1:0:
    
    C:\Program Files (x86)\arduino-nightly\libraries\Firmata/Boards.h:32:0: note: this is the location of the previous definition
    
     #define MAX_SERVOS 0
    
     ^
    
    Sketch uses 20248 bytes (70%) of program storage space. Maximum is 28672 bytes.
    Global variables use 1319 bytes (51%) of dynamic memory, leaving 1241 bytes for local variables. Maximum is 2560 bytes.
    
    
    avrdude: ser_drain(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
    
    
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: Yikes!  Invalid device signature.
             Double check connections and try again, or use -F to override
             this check.
    
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: error: programmer did not respond to command: leave prog mode
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: error: programmer did not respond to command: exit bootloader
    avrdude: error: programmer did not respond to command: exit bootloader
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    User avatar
    LattePanda
    Site Admin
    Posts: 2467
    Joined: Wed Jan 20, 2016 9:09 am

    Wed Nov 21, 2018 8:22 pm

    sansupercool wrote:
    Sat Oct 27, 2018 4:43 pm
    I fix this prolem already now I am getting a new error

    Code: Select all

    Arduino: 1.8.7 Hourly Build 2018/10/24 04:33 (Windows 10), Board: "Arduino Leonardo"
    
    In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:40:0:
    
    C:\Program Files (x86)\arduino-nightly\libraries\Servo\src/Servo.h:84:0: warning: "MAX_SERVOS" redefined
    
     #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)
    
     ^
    
    In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:1:0:
    
    C:\Program Files (x86)\arduino-nightly\libraries\Firmata/Boards.h:32:0: note: this is the location of the previous definition
    
     #define MAX_SERVOS 0
    
     ^
    
    Sketch uses 20248 bytes (70%) of program storage space. Maximum is 28672 bytes.
    Global variables use 1319 bytes (51%) of dynamic memory, leaving 1241 bytes for local variables. Maximum is 2560 bytes.
    
    
    avrdude: ser_drain(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
    
    
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: Yikes!  Invalid device signature.
             Double check connections and try again, or use -F to override
             this check.
    
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: error: programmer did not respond to command: leave prog mode
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: ser_recv(): read error: The device does not recognize the command.
    
    
    avrdude: butterfly_recv(): programmer is not responding
    avrdude: error: programmer did not respond to command: exit bootloader
    avrdude: error: programmer did not respond to command: exit bootloader
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Try re-install your Arduino IDE. Looks like that your Arduino IDE has pre-installed the Servo library for twice in user folder and system library both...Maybe.
    Enjoy Tinkering with LattePanda ! :lol:

    User avatar
    sansupercool
    Posts: 21
    Joined: Sun May 13, 2018 7:09 am

    Thu Nov 22, 2018 9:22 am

    I started using particle photon that was quite easy to set up , maybe I will give it a try.

    User avatar
    LattePanda
    Site Admin
    Posts: 2467
    Joined: Wed Jan 20, 2016 9:09 am

    Thu Nov 29, 2018 2:26 pm

    sansupercool wrote:
    Thu Nov 22, 2018 9:22 am
    I started using particle photon that was quite easy to set up , maybe I will give it a try.
    Interesting. Do you mean connecting photon on LattePanda? Look forward to your updates.
    Enjoy Tinkering with LattePanda ! :lol:

    User avatar
    sansupercool
    Posts: 21
    Joined: Sun May 13, 2018 7:09 am

    Thu Oct 03, 2019 8:00 pm

    LattePanda wrote:
    Thu Nov 29, 2018 2:26 pm
    sansupercool wrote:
    Thu Nov 22, 2018 9:22 am
    I started using particle photon that was quite easy to set up , maybe I will give it a try.
    Interesting. Do you mean connecting photon on LattePanda? Look forward to your updates.
    No Man, I meant I stopped using LP

    Post Reply