Magnet sensor sweep code

i got the library added finally. now when trying to compile, it errors 'cant compile for wemos d1 r2'. now what do i do