You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2022-11-27 18:00:19.5970744860 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/797
2022-11-27 18:00:11.3291756200 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/799
2022-11-27 18:00:09.6491964350 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1164
2022-11-27 18:00:06.8212316770 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sdb/39
2022-11-27 18:00:06.2252391390 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/362
2022-11-27 18:00:05.3412502270 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/709
2022-11-27 18:00:04.4292616920 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/777
2022-11-27 18:00:04.2812635530 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6043
2022-11-27 18:00:03.8772686420 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/358
2022-11-27 18:00:03.6852710640 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/706
2022-11-27 17:00:04.3320845900 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6042
2022-11-27 17:00:03.8080797010 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1163
2022-11-27 16:00:07.1808456500 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sdb/38
2022-11-27 16:00:05.8688339450 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/361
2022-11-27 16:00:05.4688303760 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/708
2022-11-27 16:00:04.7368238430 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/796
2022-11-27 16:00:04.6728232720 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6041
2022-11-27 16:00:04.6688232360 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/776
2022-11-27 16:00:03.8928163130 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/705
2022-11-27 16:00:03.5888136000 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/798
2022-11-27 16:00:03.5488132440 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/357
2022-11-27 16:00:02.9008074610 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1162
2022-11-27 15:00:04.5445475060 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6040
2022-11-27 14:00:14.5485779210 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/795
2022-11-27 14:00:10.9845629190 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/797
2022-11-27 14:00:07.3045474690 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/360
2022-11-27 14:00:06.4565439150 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sdb/37
2022-11-27 14:00:06.4485438810 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/707
2022-11-27 14:00:05.0805381540 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/356
2022-11-27 14:00:04.7365367140 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/704
2022-11-27 14:00:04.7005365630 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1161
2022-11-27 14:00:04.4885356770 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6039
2022-11-27 14:00:04.1685343370 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/775
2022-11-27 13:00:04.3781888650 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6038
2022-11-27 13:00:02.5941720650 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1160
2022-11-27 12:00:11.8232581360 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/794
2022-11-27 12:00:07.6152441630 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/359
2022-11-27 12:00:05.8872384370 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sdb/36
2022-11-27 12:00:05.7752380660 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/796
2022-11-27 12:00:05.3472366490 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/355
2022-11-27 12:00:04.8912351400 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/706
2022-11-27 12:00:04.5112338830 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6037
2022-11-27 12:00:03.7632314090 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/774
2022-11-27 12:00:03.3192299410 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/703
2022-11-27 11:00:04.7322217820 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6036